package com.xln.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_tag")
public class Tag {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    private String name;

    private String description;

    private String color = "#666666";

    private Integer articleCount = 0;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
